﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ado.Interface
{
    public interface IDbHelper
    {
        #region 执行查询，利用SqlDataReader返回结果并使用其进行一些操作+void ExecuteReader(string ConnStr, string strSql, out SqlDataReader reader, Action act, params SqlParameter[] paras)
        /// <summary>
        /// 执行查询，利用SqlDataReader返回结果并使用其进行一些操作
        /// </summary>
        /// <param name="strSql">sql语句</param>
        /// <param name="reader">SqlDataReader</param>
        /// <param name="paras">参数列表</param>
        /// <param name="act">操作</param>
        void ExecuteReader(string ConnStr, string strSql, out SqlDataReader reader, Action act, params SqlParameter[] paras);
        #endregion
    }
}
